package com.hongfeng.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hongfeng.web.dao.BizInfoDao;
import com.hongfeng.web.model.BizInfo;
import com.hongfeng.web.service.BizInfoService;

@Service
public class BizInfoServiceImpl implements BizInfoService {

	@Resource
	private BizInfoDao bizInfoDao;

	public BizInfo find() {
		List<BizInfo> bizInfos = this.bizInfoDao.findAll();
		if(bizInfos.size() > 0) {
			return bizInfos.get(0);
		}
		return new BizInfo();
	}

}
